import request from '@/utils/request'
//获取出库列表
export function finishStoreList(query) {
  return request({
    url: '/storage/finishStore/list',
    method: 'get',
    params: query
  });
}
//获取出库详情
export function finishStoreDetail(query) {
  return request({
    url: '/storage/finishStore/' + query,
    method: 'get',
  });
}
//删除出库单据
export function finishStoreListDelete(query) {
  return request({
    url: '/storage/finishStore/' + query,
    method: 'delete',
  });
}
//完成出库
export function finishStoreOver(query) {
  return request({
    url: '/storage/finishStore',
    method: 'post',
    data: query
  });
}
//往来单位不分页新增
export function queryAllList(query) {
  return request({
    url: '/basic/customer/queryAllList',
    method: 'get',
    params: query
  });
}

// ========== 新增出库流程接口 ==========
//拣货操作
export function pickingGoods(billsId) {
  return request({
    url: '/storage/finishStore/picking/' + billsId,
    method: 'post'
  });
}

//复核操作
export function reviewGoods(billsId) {
  return request({
    url: '/storage/finishStore/review/' + billsId,
    method: 'post'
  });
}

//出库操作
export function deliverGoods(billsId) {
  return request({
    url: '/storage/finishStore/deliver/' + billsId,
    method: 'post'
  });
}
